<?php
/**
 * Created by PhpStorm.
 * User: asus
 * Date: 2018/9/24
 * Time: 22:41
 */

//魔术方法 自动引入
function __autoload($classname){
    include_once "{$classname}.php";
}


$tea1=new Teacher();
$tea2=new Teacher();
$tea1->name="小猪老师";
$tea2->name="大鹏老师";
$tea1->age="18";
$tea2->age="19";
$tea1->gender="男";
$tea2->gender="男";
$tea1->introduce();
$tea2->introduce();

$stu=new Student();
$stu->introduce();

$book=new Book();
$book->name="陈情令";
$book->price=999;
$book->author="忘机";
$book->made="快看App";
$book->show();


$phone=new Phone();
$phone->name="小可爱家的";
$phone->price=9999;
$phone->brand="vivo";
$phone->made="湖南";
$phone->show();